/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.structural.bridge;

/**
 *
 * @author Nashief
 */
public class SmallCar extends Vehicle {

    public SmallCar(Engine engine) {
    this.weightInKilos=600; 
    this.engine=engine;
        
    }

    public SmallCar() {
    }

    
    
    
    
    @Override
    public void drive() {
        System.out.println("\nThe small car is driving");
        int horsepower=engine.go(); 
        reportOnSpeed(horsepower);
    }
    
}
